package cn.tl.org.mapper;

import cn.tl.org.domain.Dept;
import cn.tl.org.query.DeptQuery;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface DeptMapper {
    //查询所有
    List<Dept> findAll();
    //根据id查询
    Dept findById(Long id);
    //新增
    void save(Dept dept);
    //修改
    void update(Dept dept);
    //删除
    void delete(Long id);
    //分页查询
    Long count(DeptQuery deptQuery);
    List<Dept> data(DeptQuery deptQuery);
    //批量删除
    void patchDel(Long[] ids);

    List<Dept> loadDeptTree();
}
